{{ define "content" }}
<div class="content">
  <article id="posts" class="article article-type-<%= post.layout %>" itemscope itemtype="http://schema.org/BlogPosting">
    <div class="article-header">
      <h1 class="article-title" itemprop="name headline">{{ .Title }}</h1>
      <div class="article-meta">
        {{ partial "post/date.html" .}}
        {{ partial "post/category.html" .}}
        {{ partial "post/tags.html" .}}
        {{ partial "post/readtime.html" .}}
      </div>
    </div>
    <div class="article-entry marked-body" itemprop="articleBody">
      {{ .Content }}
    </div>
    <div class="article-footer">
      <blockquote class="mt-2x">
        <ul class="post-copyright list-unstyled">
          <li class="post-copyright-link hidden-xs">
            <strong>本文链接：</strong> <a href="{{ .URL }}" title="{{ .Title }}" rel="external">{{ .Permalink }}</a>
          </li>
          <li class="post-copyright-license"><strong>版权声明： </strong>本博客所有文章除特别声明外，均采用 <a href="http://creativecommons.org/licenses/by/4.0/deed.zh" target="_blank" rel="external">CC BY 4.0 CN协议</a> 许可协议。转载请注明出处！</li>
        </ul>
      </blockquote>
      <div class="panel panel-default panel-badger">
        <div class="panel-body">
          <figure class="media">
            <div class="media-left">
              <a href="{{ .Site.Params.home | default "/" }}" target="_blank" class="img-burn thumb-sm visible-lg">
                <img src="{{ .Site.Params.avatar }}" class="img-rounded w-full" alt="">
              </a>
            </div>
            <div class="media-body">
              <h3 class="media-heading"><a href="{{ .Site.Params.home | default "/" }}" target="_blank">
                <span class="text-dark">{{ .Site.Params.author }}</span>
                <small class="ml-1x">{{ .Site.Params.subtitle }}</small></a>
              </h3>
              <div>{{ .Site.Params.description }}</div>
            </div>
          </figure>
        </div>
      </div>
    </div>
  </article>
</div>
{{ if eq .Section "posts" }}
<aside class="sidebar sidebar-toc collapse" id="collapseToc" itemscope itemtype="http://schema.org/WPSideBar">
  <div class="slimContent">
    <nav id="toc" class="article-toc post-toc">
      <h3 class="toc-title">文章目录</h3>
      {{ .TableOfContents }}
    </nav>
  </div>
</aside>
<nav class="bar bar-footer clearfix" data-stick-bottom="">
  <div class="bar-inner">
    <ul class="pager pull-left">
      {{ if .Prev }}
        {{ if eq .Prev.Section "posts" }}
        <li class="prev">
            <a href="{{ .Prev.URL }}" title="{{ .Prev.Title }}">
                <i class="icon icon-angle-left" aria-hidden="true"></i><span>&nbsp;&nbsp;上一篇</span>
              </a>
        </li>
        {{ end }}
      {{ end }}
      {{ if .Next }}
        {{ if eq .Next.Section "posts" }}
        <li class="next">
          <a href="{{ .Next.URL }}" title="{{ .Next.Title }}">
            <span>下一篇&nbsp;&nbsp;</span><i class="icon icon-angle-right" aria-hidden="true"></i>
          </a>
        </li>
        {{ end }}
      {{ end }}
      <li class="toggle-toc">
        <a class="toggle-btn collapsed" data-toggle="collapse" href="#collapseToc" aria-expanded="false" title="文章目录" role="button">
          <span>[&nbsp;</span><span>文章目录</span>
          <i class="text-collapsed icon icon-anchor"></i>
          <i class="text-in icon icon-close"></i>
          <span>]</span>
        </a>
      </li>
    </ul>
  </div>
</nav>
{{ end }}    
{{ end }}